package IO;

import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Microsoft
 * Date: 2023-07-26
 * Time: 11:10
 */
public class IODemo1 {
    public static void main(String[] args) throws IOException {
        //此时我们就可以通过File对象进行操作了
        File file = new File("./学习内容.txt");//并不要求文件真实存在
        System.out.println(file.getParent());
        System.out.println(file.getName());
        System.out.println(file.getPath());
        System.out.println(file.getAbsolutePath());
        System.out.println(file.getCanonicalPath());

    }
}


























